package com.commerceerp.system.service.Impl;

import com.commerceerp.system.mapper.FxReceiveInfoMapper;
import com.commerceerp.system.service.FxReceiveInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class FxReceiveInfoServiceImpl implements FxReceiveInfoService {

  @Autowired
  private FxReceiveInfoMapper fxReceiveInfoMapper;

    @Override
    public List<Map> getAllReceiveInfo(String loginUserId) {

        List<Map> list = this.fxReceiveInfoMapper.getAllReceiveInfo(loginUserId);

        return list;
    }

    @Override
    public Integer addReceiveInfo(String receiveName, String receiveCountry, String receiveAddress, String receivePhone, String receivePostcode, String loginUserId) {
        Integer success = this.fxReceiveInfoMapper.addReceiveInfo(receiveName,receiveCountry,receiveAddress,receivePhone,receivePostcode,loginUserId);

        return success;
    }

    @Override
    public Integer deleteReceiveInfo(String receiveId) {

        Integer success = this.fxReceiveInfoMapper.deleteReceiveInfo(receiveId);

        return success;
    }
}
